package src.iteitma0A;

public class Worker extends  Person {
    @Override
    public String toString() {
        return "Worker{" +
                "name='" + getName() + '\'' +
                ", age=" + getAge() +
                '}';
    }
    //生成空参,满参构造

    public Worker() {
    }

    public Worker(String name, int age) {
        super(age,name);
    }
}
